package com.it.methoddemo;

public class MethodDemo4 {
    public static void main(String[] args) {
        //目标:掌握带参数方法定义的格式和调用的格式

        getSum(110,22);
    }

    public static void getSum(int num1, int num2) {
        int result=num1+num2;
        System.out.println(result);
    }
}
